﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace compositecontrol
{
    public partial class Exposing_the_Properties_of_Constituent_Controls : UserControl
    {
        public Exposing_the_Properties_of_Constituent_Controls()
        {
            InitializeComponent();
        }

        
            
     
        public System.Drawing.Color ButtonBackColor
        {
            get { return button1.BackColor; }
            set { button1.BackColor = value; }
        }

        private void Exposing_the_Properties_of_Constituent_Controls_Load(object sender, EventArgs e)
        {
            this.BackColor = Color.Transparent;
            
       
        }
        [ToolboxBitmap(@"D:\Resources\Bitmap1.bmp")]
        class myControl : UserControl
        {

        } 
        private void button1_Click(object sender, EventArgs e)
        {

        }
 




    }
}
